import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'  // 引入Element Plus 所需
import 'element-plus/dist/index.css'  // 引入Element Plus 所需
import store from './store'
import router from './router/index.js'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import * as icons from "@element-plus/icons-vue";

const app = createApp(App);

for (const name in icons) {
    app.component(name, icons[name]);
}

app.use(ElementPlus, {
    locale: zhCn,
})
app.use(router)
app.use(store)
app.use(ElementPlus)  // 引入Element Plus 所需
app.mount('#app')
